package com.eyaomall.wxmall.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eyaomall.wxmall.dao.StoresDao;
import com.eyaomall.wxmall.model.po.Stores;
import com.eyaomall.wxmall.model.vo.StoresVO;
import com.eyaomall.wxmall.service.StoresService;
import com.lycheeframework.core.cmp.kit.PageHTTPObject;
import com.lycheeframework.core.cmp.kit.Pages;

@Service
public class StoresServiceImpl  implements StoresService {
	@Autowired
	private StoresDao storesDao;
	
	/**
	 * 分页查询门店
	 */
	public Pages<?> page(StoresVO stores, PageHTTPObject httpObject) {
		return storesDao.page(stores, httpObject);
	}

	/**
	 * 根据ID查询门店
	 */
	public Stores queryById(Integer id) {
		return storesDao.queryById(id);
	}

	/**
	 * 删除店铺
	 */
	public boolean deleteById(Integer id) {
		return storesDao.delete(id);
	}

	/**
	 * 修改门店
	 */
	public boolean update(Stores stores) {
		return storesDao.update(stores);
	}

}
